<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<ul>
    <li>贾乃亮</li>
    <li>徐峥</li>
    <li>黄渤</li>
    <li>王宝强</li>
    <li>张艺谋</li>
</ul>
<script type="text/javascript">
    var elementsByName = document.getElementsByTagName("li");
    console.log(elementsByName)
</script>
</body>
</html>